package com.lgy.service;

import com.github.pagehelper.PageInfo;
import com.lgy.pojo.Employee;

import java.util.List;

public interface IEmployeeService {
    int deleteByPrimaryKey(Integer empid);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer empid);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    Boolean findByPhoneNumber(String empPhoneNumber);

    Boolean findByEmpName(String empname);

    Boolean findEmpByCompanyId(Integer companyid, String empphone);

    Employee findEmp(Employee employee);

    PageInfo<Employee> findEmpAndPositionName(Integer companyId, Integer page, Integer pageSize);

    Employee findByEmpId(int empId);

    List<Employee> getAllEmpByCompanyId(Integer companyid);
}
